package stv5;

import com.eekboom.utils.Strings;

/**
 * This represents a single episode. Just a very simple, 
 *  straightforward class for data-storage purposes
 * 
 * @author Daniel
 *
 */
public class Episode implements Comparable<Episode> {
	private String name, link;
	
	public Episode(String name, String link) {
		this.name = name;
		this.link = link;
	}
	
	public String getName() {
		return name;
	}
	
	public String getLink() {
		return link;
	}

	@Override
	public int compareTo(Episode other) {		
		return Strings.compareNaturalIgnoreCaseAscii(getName(), other.getName());
	}
}
